using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    class Programac
    {
        static void Main(string[] args)
        {
            Console.WriteLine("请选择机器人要执行的功能:");
            Console.WriteLine("1.炒菜 2.传菜");
            string g = Console.ReadLine();
            GTR(g);
        }
        public static Robot GTR(string g)
        {
            Robot xk;
            switch (g)
            {
                case "炒菜":
                    xk  = new CookRobot("ES型100B2");
                    xk.wrok();
                    break;
                case "传菜":
                    xk  = new DeliveryRobot("ES型100B2");
                    xk.wrok();
                    break;
                default:
                    xk = new CookRobot("ES型100B2");
                    xk.wrok();
                    break;
            }
            return xk;




        }
       

        }
}